package cn.opopopo.design_pattern_learn.结构型.flyweight;

// 字符的共享状态（内部状态）：字体、颜色、字号
class CharacterStyle {
    private String font;
    private int size;
    private String color;

    public CharacterStyle(String font, int size, String color) {
        this.font = font;
        this.size = size;
        this.color = color;
    }

    @Override
    public String toString() {
        return "[字体=" + font + ", 大小=" + size + ", 颜色=" + color + "]";
    }
}